<template>
  <div style="line-height: 20px;">
    <template v-if="row.content">
      <div class="title">{{row.title}}</div>
      <template v-if="row.title === '上传文件'">
        <div class="t_text">{{ row.content.obj_number + ': '+ row.content.old_target_address}}</div>
        <div class="t_text">{{ row.content.obj_name + ': '+ row.content.new_target_address}}</div>
      </template>
      <template v-else>
        <div class="t_text">{{ row.content.obj_number ? '对象编号:'+ row.content.obj_number : ''}}</div>
        <div class="t_text">{{ row.content.obj_name ? '对象名称:'+ row.content.obj_name : ''}}</div>
        <div class="t_text">{{ row.content.old_target_address ? '更换前目标地址:'+ row.content.old_target_address : ''}}</div>
        <div class="t_text">{{ row.content.new_target_address ? '更换后目标地址:'+ row.content.new_target_address : ''}}</div>
      </template>
    </template>
    <template v-else>
      <div class="title">{{row.title}}</div>
      <div class="t_text">{{ row.login_name? '登陆账号:'+ row.login_name: ''}}</div>
      <div class="t_text">{{ row.user_name? '姓名:'+ row.user_name: ''}}</div>
    </template>
  </div>
</template>

<script>
export default {
  props: {
    row: Object,
  }
};
</script>

<style scoped lang="less">
.title{
  font-weight: bold;
  font-size: 14px;
}
.t_text{
  font-size: 13px;
}
</style>